<template>
    <div class="hello">
        <img src="@/assets/logo.png"/>
        <h1>从这里开始创建Vue项目</h1>
        <div>{{nickName}}</div>
    </div>
</template>

<script>
import { getUsers } from "@/api/load";
export default {
    name: "HelloWorld",
    data () {
        return {
            nickName: ""
        };
    },
    created () {
        getUsers().then(res => {
            this.nickName = res.data.nickName;
        });
    }
};
</script>

<style lang="less" scoped>
.hello {
    width: 100%;
    height: 100%;
    text-align: center;
}
</style>
